package com.glela.live.messages;

import com.glela.live.util.GsonUtil;

public class GiftMessage extends BaseMessage{

    private String giftId="";

    private String giftImg="";

    private String giftName="";

    private User user;

    public String getGiftName() {
        return giftName;
    }

    public void setGiftName(String giftName) {
        this.giftName = giftName;
    }

    public String getGiftId() {
        return giftId;
    }

    public void setGiftId(String giftId) {
        this.giftId = giftId;
    }

    public String getGiftImg() {
        return giftImg;
    }

    public void setGiftImg(String giftImg) {
        this.giftImg = giftImg;
    }

    private transient static final String TYPE = "XP:GiftMsg";
    @Override
    public String getType() {
        return TYPE;
    }

    public GiftMessage(String giftId,String giftImg,String giftName,User user){
        this.giftId=giftId;
        this.giftImg=giftImg;
        this.giftName=giftName;
        this.user=user;
    }

    private int showFlag = 1;

    public int getShowFlag() {
        return showFlag;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, GiftMessage.class);
    }
}
